package com.psbc.data.trans.server;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.psbc.data.trans.datasource.pg.entity.Columns;
import com.psbc.data.trans.datasource.pg.mapper.ColumnsMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestServer {

    @Autowired
    private ColumnsMapper columnsMapper;

    public List<Columns> selectByTableName(String alert_history) {
        List<Columns> columns = columnsMapper.selectByTableName(alert_history);
        return columns;
    }
}
